package openGl.camera;

import android.content.Context;
import android.graphics.SurfaceTexture;
import android.opengl.GLSurfaceView;
import android.util.AttributeSet;
import android.util.Log;

/**
 * Created by Administrator on 2017/12/29.
 */

public class CameraSurfaceView extends GLSurfaceView{
    private String Tag="CameraSurfaceView";
    public CameraSurfaceView(Context context) {
        this(context,null);
    }

    public CameraSurfaceView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }
    
    private void  init(){
        setEGLContextClientVersion(2);
        setRenderer(new CameraRender(getContext(),this));
        setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);
        Log.e(Tag,"初始化");
    }
    
}
